package cn.itcast.service.cargo;


import cn.itcast.domain.cargo.Factory;
import cn.itcast.domain.cargo.FactoryExample;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface FactoryService {

    //保存
    void save(Factory factory);
    //删除
    void delete(String id);
    //更新
    void update(Factory factory);
    //根据id查询
    Factory findById(String id);
    //查询全部
    List<Factory> findAll(FactoryExample example);
    //分页查询
    PageInfo findAll(FactoryExample example,int page ,int size);
}
